﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="quarterapp.aspx.cs" Inherits="SF.Ucenter.admin.statistics.quarterapp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>当前订单报表分析</title>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript" charset="utf-8"  src="js/highcharts.js"></script>
    <script type="text/javascript" charset="utf-8"  src="js/exporting.js"></script>
    <script type="text/javascript">
        var api = top.dialog.get(window); //获取父窗体对象
        //页面加载完成执行
        $(function () {
            //设置按钮及事件
            api.button([{
                value: '返回',
                callback: function () { }
            }]);
        });

        $(function () {
            $('#container').highcharts({
                title: {
                    text: '',
                    x: -20 //center
                },
                xAxis: {
                    categories: [<%=orders_Tendency[0] %>]
                },
                yAxis: [{
                    title: {
                        text: '订单数量'
                    },
                    min: 0,
                    allowDecimals: false,
                    plotLines: [{
                        value: 0,
                        width: 1,
                        color: '#808080'
                    }]
                }],
                credits: {
                    enabled: false
                },
                exporting: {
                    enabled: true
                },
                legend: {
                    title: { text: '', style: { fontWeight: "blod"}},
                    layout: 'horizontal',
                    align: 'center',
                    verticalAlign: 'bottom',
                    borderWidth: 0
                },
                series: [
                    { type: 'spline', name: '今年同期', data: [<%=orders_Tendency[1] %>] },
                    { type: 'spline', name: '去年同期', data: [<%=orders_Tendency[2] %>]}
                ]
            });
        });
    </script>
</head>

<body style="margin-top:20px;"> 
     <div id="container" style="min-width:600px;height:350px"></div>
</body>
</html>